package com.wen.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wen.entity.Coach;
import com.wen.mapper.CoachMapper;
import com.wen.service.CoachService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author dhh
 * @date 2021/11/22 9:36
 */
@Service
@AllArgsConstructor
public class CoachServiceImpl extends ServiceImpl<CoachMapper, Coach> implements CoachService {

    private final CoachMapper coachMapper;

    @Override
    public List<Map<String, Object>> getCourseByCoachId(Integer coachId, String search) {
        return coachMapper.getCourseByCoachId(coachId,search);
    }
}
